package com.apexedu.portal.action;

import com.apexedu.framework.service.BaseService;
import com.apexedu.portal.entity.TAnswerPro;
import com.apexedu.portal.entity.TProblem;
import com.apexedu.sys.action.AbstractBaseActionSupport;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 门户服务资源问题回复
 * Created by janabo on 2015-1-15.
 */
@SuppressWarnings("serial")
@Component
@Scope("prototype")
public class PortalServiceProblemAction extends AbstractBaseActionSupport {
    private TProblem problem;

    private TAnswerPro discuss;

    private String pid;

    /**
     * 此方法植入service类
     */
    @Resource(name="portalServiceProblemService")
    public void setBaseService(BaseService baseService){
        super.setBaseService(baseService);
    }

    public TProblem getProblem() {
        return problem;
    }

    public void setProblem(TProblem problem) {
        this.problem = problem;
    }

    public TAnswerPro getDiscuss() {
        return discuss;
    }

    public void setDiscuss(TAnswerPro discuss) {
        this.discuss = discuss;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }
}
